JavaScript flatMap() method logging NaN when action is performed on element

visit shbcf.ru